import 'package:flutter/material.dart';
import 'package:jtsell_app/pages/detail/goods_detail_page.dart';
import 'package:jtsell_app/routes/routes.dart';
import 'package:provider/provider.dart';
import 'pages/index_page.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {

    Provider.debugCheckInvalidValueType = null;

    return MaterialApp(
      onGenerateRoute: Routes.getInstance().router.generator,
      title: 'Flutter Demo',
//      theme: ThemeData(
//        brightness: Brightness.light,
//        primarySwatch: Colors.teal,
//        accentColor: Colors.redAccent,
//      ),
      home: IndexPage(),
//      home: GoodsDetailPage(),
    );
  }
}
